<p class="lead-title">Teacher's Commendations</p>
<div>
	<?if($commendations):?>
		<table class="table table-striped table-bordered">
			<tr class="info">
				<td>Date</td>
				<td>Sender</td>
				<td></td>
			</tr>
			<?foreach($commendations as $k => $v):?>
			<tr>
				<td><?=$v->date_sent?></td>
				<td>
					<i>Tchr</i> <?=$v->teacher?>
					<?=$v->is_read == 0 ? '<span class="label success radius">new</span>' : '';?>

				</td>
				<td>
					<a href="#" data-reveal-id="myModal<?=$k;?>"  class="<?=$v->is_read == 0 ? 'read_on_click' : '';?>" <?=$v->is_read == 0 ? 'data-url-id="'.site_url('output/read_commendation/'.__link($v->commend_id)).'"' : '';?>>Read</a>
					<div id="myModal<?=$k;?>" class="reveal-modal xlarge">
					  <p> <?=$v->teacher?> says:</p>
					  <p style="text-indent:20px;font-size:11px;font-weight:bold;"> <?=$v->msg?></p>
					  <a class="close-reveal-modal">&#215;</a>
					</div>
				</td>
			</tr>
			<?endforeach;?>
		</table>
		<?=$pagnation_links;?>
	<?else:?>
		<div class="alert-box">No Teacher Commendations.</div>
	<?endif;?>
</div>